Stop editing when a new model is set. (#145566, Dmitry M. Shatrov)
authorMatthias Clasen <maclas@gmx.de>
Thu, 8 Jul 2004 04:33:50 +0000 (04:33 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 8 Jul 2004 04:33:50 +0000 (04:33 +0000)
Thu Jul  8 00:33:15 2004  Matthias Clasen  <maclas@gmx.de>

* gtk/gtktreeview.c (gtk_tree_view_set_model):  Stop editing
when a new model is set.  (#145566, Dmitry M. Shatrov)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktreeview.c

index 10ce76ad3b5c2f471ffad98314665b22974f0dab..b2af759128db1cba46260c1ff0252b495a8df5b9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Jul  8 00:31:34 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtktreeview.c (gtk_tree_view_set_model): Stop editing
+       when a new model is set.  (#145566, Dmitry M. Shatrov)
+
 Wed Jul  7 23:44:32 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkimage.c (gtk_image_expose): Make sure that subpixbufs
index 10ce76ad3b5c2f471ffad98314665b22974f0dab..b2af759128db1cba46260c1ff0252b495a8df5b9 100644 (file)
@@ -1,3 +1,8 @@
+Thu Jul  8 00:31:34 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtktreeview.c (gtk_tree_view_set_model): Stop editing
+       when a new model is set.  (#145566, Dmitry M. Shatrov)
+
 Wed Jul  7 23:44:32 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkimage.c (gtk_image_expose): Make sure that subpixbufs
index 10ce76ad3b5c2f471ffad98314665b22974f0dab..b2af759128db1cba46260c1ff0252b495a8df5b9 100644 (file)
@@ -1,3 +1,8 @@
+Thu Jul  8 00:31:34 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtktreeview.c (gtk_tree_view_set_model): Stop editing
+       when a new model is set.  (#145566, Dmitry M. Shatrov)
+
 Wed Jul  7 23:44:32 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkimage.c (gtk_image_expose): Make sure that subpixbufs
index 10ce76ad3b5c2f471ffad98314665b22974f0dab..b2af759128db1cba46260c1ff0252b495a8df5b9 100644 (file)
@@ -1,3 +1,8 @@
+Thu Jul  8 00:31:34 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtktreeview.c (gtk_tree_view_set_model): Stop editing
+       when a new model is set.  (#145566, Dmitry M. Shatrov)
+
 Wed Jul  7 23:44:32 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkimage.c (gtk_image_expose): Make sure that subpixbufs
index 91bb183e3a7db7d603c88ee4f8f466d900e3ceee..42ecbdcc395024c9a3902f58069251305b4b153d 100644 (file)
@@ -8831,8 +8831,8 @@ gtk_tree_view_get_model (GtkTreeView *tree_view)
  * @model: The model.
  *
  * Sets the model for a #GtkTreeView.  If the @tree_view already has a model
- * set, it will remove it before setting the new model.  If @model is %NULL, then
- * it will unset the old model.
+ * set, it will remove it before setting the new model.  If @model is %NULL, 
+ * then it will unset the old model.
  **/
 void
 gtk_tree_view_set_model (GtkTreeView  *tree_view,
@@ -8851,6 +8851,7 @@ gtk_tree_view_set_model (GtkTreeView  *tree_view,
       GList *tmplist = tree_view->priv->columns;
 
       gtk_tree_view_unref_and_check_selection_tree (tree_view, tree_view->priv->tree);
+      gtk_tree_view_stop_editing (tree_view, TRUE);
 
       g_signal_handlers_disconnect_by_func (tree_view->priv->model,
                                            gtk_tree_view_row_changed,